#九九乘法表
a=int(input("请输入层数:"))
for i in range(1,a+1):
    for j in range(1,i+1):
        print(str(j)+"*"+str(i)+"="+str(j*i),end="  ")
    print()

#金字塔星号
a=int(input("请输入层数"))
for i in range(a):
    print(" "*(a - 1 - i)+ "*"*(i+1) + "*"*i)

#金字塔九九乘法表
a=int(input("请输入层数"))
for i in range(1,a+1):
    for k in range(1,a+1-i):
        print(end="    ")
    for j in range(1,i+1):
        print(f"{j}*{i} = {i * j}", end="    ")
    print("")
